//
//  ProgressDetailView.m
//  Project two framework
//
//  Created by rimi on 16/7/28.
//  Copyright © 2016年 张峥. All rights reserved.
//

#import "ProgressDetailView.h"
#import "ZZConfig.h"
@interface ProgressDetailView ()
@property (nonatomic, strong) UIImageView *backgroundImage;
@property (nonatomic, strong) UIImageView *progressImage;


@end

@implementation ProgressDetailView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self interface];
    }
    return self;
}

- (void)interface
{
    [self addSubview:self.backgroundImage];
    [self.backgroundImage addSubview:self.progressImage];
    [self.backgroundImage addSubview:self.statusImage];
    [self.backgroundImage addSubview:self.back];
}

- (UIImageView *)backgroundImage
{
    if (_backgroundImage == nil) {
        _backgroundImage = ({
            UIImageView *imageView = [[UIImageView alloc]initWithFrame:CGRectMake(20, 20, SCREEN_WIDTH - 120, SCREEN_HEIGHT - 120)];
            imageView.image = [UIImage imageNamed:@"di_05.png"];
            imageView.userInteractionEnabled = YES;
            imageView;
        });
    }
    return _backgroundImage;
}

- (UIImageView *)progressImage
{
    if (_progressImage == nil) {
        _progressImage =  ({
            UIImageView *imageView = [[UIImageView alloc]initWithFrame:CGRectMake(350 , 140, 200, 30)];
            imageView.image = [UIImage imageNamed:@"text_34.png"];
            imageView;
        });
    }
    return _progressImage;
}


- (UIImageView *)statusImage
{
    if (_statusImage == nil) {
        _statusImage = ({
            UIImageView *imageView = [[UIImageView alloc]initWithFrame:CGRectMake(130 , 260, 690, 80)];
            imageView;
        });
    }
    return _statusImage;
}

- (UIButton *)back
{
    if (_back == nil) {
        _back = [UIButton buttonWithType:UIButtonTypeCustom];
        _back.frame = CGRectMake(380, 500, 160, 50);
        [_back setImage:[UIImage imageNamed:@"返回.png"] forState:UIControlStateNormal];
        
    }
    return _back;
}

@end
